<!--
描述：查询列表
开发人：jiangbiao
开发日期：2019/06/22
-->

<template lang="pug">
  keep-alive
    kalix-table(bizKey="inquire" title='查询列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="inquireURL"
    v-bind:bizDialog="inquireDialog"
    v-bind:btnList="inquireBtnList"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="inquireSearch")
</template>

<script type="text/ecmascript-6">
  import {InquireURL} from '../../config.toml'
  import {inquireConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'
  export default {
    name: 'kalix-mooc-inquire',
    components: {KalixTable},
    data() {
      return {
        inquireURL: InquireURL,
        tableFields: [
          {prop: 'type', label: '查询分类'},
          {prop: 'content', label: '查询内容'}
        ],
        inquireDialog: [
          {id: 'add', dialog: 'inquireAdd'},
          {id: 'edit', dialog: 'inquireEdit'},
          {id: 'view', dialog: 'inquireView'}
        ],
        inquireBtnList: inquireConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
